package com.itheima.job;

import java.util.ArrayList;

public class Test02 {
    public static void main(String[] args) {
        ArrayList<String> arrayList = new ArrayList<>();
        arrayList.add("a");
        arrayList.add("b");
        arrayList.add("c");
        arrayList.add("d");

        String s = "e";
        boolean flag = listTest(arrayList,s);
        System.out.println(flag);
    }

    private static boolean listTest(ArrayList<String> arrayList, String s) {
        boolean contains = arrayList.contains(s);
        return contains;
    }
}
